//
//  YYBaseViewController.m
//  drivingSchool
//
//  Created by 子yu 刘 on 2018/7/29.
//  Copyright © 2018年 子yu 刘. All rights reserved.
//

#import "YYBaseViewController.h"

@interface YYBaseViewController ()

@end

@implementation YYBaseViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = DEF_COLOR_BG;
}

-(UIImageView *)baseImageView{
    if (!_baseImageView) {
        _baseImageView = [[UIImageView alloc] init];
        _baseImageView.hidden = YES;
        _baseImageView.image = DEF_IMAGENAME(@"sign_no_information");
        [self.view addSubview:_baseImageView];
        [_baseImageView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.centerX.mas_equalTo(0);
        make.bottom.mas_equalTo(self.baseLabel.mas_top).mas_equalTo(-32);
        }];
    }
    return _baseImageView;
}

- (UILabel *)baseLabel{
    if (!_baseLabel) {
        _baseLabel = [[UILabel alloc] init];
        _baseLabel.font = [UIFont systemFontOfSize:13];
        _baseLabel.textColor = [UIColor colorWithHexString:@"999999"];
        [self.view addSubview:_baseLabel];
        [_baseLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.centerX.mas_equalTo(0);
            make.centerY.mas_equalTo(self.view.centerY).mas_offset(100);
        }];
    }
    return _baseLabel;
}


-(void)btnClick{
    
}
-(void)dealloc{
    NSLog(@"页面销毁了。。。。。。。");
    [[NSNotificationCenter defaultCenter] removeObserver:self];
}

-(NSString *)pageString{
    return [NSString stringWithFormat:@"%li",(long)_pageNO];
}

@end
